﻿/* ==========================================
   MUSEO DE ARTE MODERNO DE BARRANQUILLA
   Landing Page CSS
   ========================================== */

:root {
    --primary-color: #2c2c2c;
    --accent-warm: #d4a574;
    --accent-terra: #a86247;
    --bg-light: #f5f3f0;
    --text-dark: #3a3a3a;
    --text-light: #6a6a6a;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ==========================================
   TIPOGRAFÍA
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ==========================================
   CONTENEDOR GLOBAL
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

section.fade-up {
    opacity: 1;
}

/* ==========================================
   NAVBAR FIJA
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-img {
    height: 26px;
    width: auto;
    display: block;
}

.nav-logo-img.is-fallback {
    height: auto;
    width: 140px;
    max-width: 100%;
    max-height: 40px;
    object-fit: contain;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-warm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-warm);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn-download {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-btn-download:hover {
    background-color: var(--accent-terra);
}

.nav-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-btn-online {
    background-color: var(--accent-terra);
}

.nav-btn-online:hover {
    background-color: var(--primary-color);
}

.btn-online {
    text-decoration: none;
    display: inline-block;
    margin-left: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition);
}

/* Espaciado debajo del navbar */
body {
    padding-top: 70px;
}

/* ==========================================
   SECCIÓN HERO
   ========================================== */

.hero {
    background: linear-gradient(135deg, #f5f3f0 0%, #ffffff 100%);
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--accent-terra);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ==========================================
   BOTONES
   ========================================== */

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-terra);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* ==========================================
   SECCIÓN ARTISTAS
   ========================================== */

.artistas {
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent-terra);
    margin-bottom: 3rem;
}

.artistas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.artista-card {
    background-color: #f9f7f5;
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition);
    border-left: 4px solid var(--accent-warm);
    opacity: 0;
    animation: fadeUpAnimation 0.6s ease-out forwards;
}

.artista-card:nth-child(1) { animation-delay: 0.1s; }
.artista-card:nth-child(2) { animation-delay: 0.2s; }
.artista-card:nth-child(3) { animation-delay: 0.3s; }
.artista-card:nth-child(4) { animation-delay: 0.4s; }
.artista-card:nth-child(5) { animation-delay: 0.5s; }
.artista-card:nth-child(6) { animation-delay: 0.6s; }
.artista-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fadeUpAnimation {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artista-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.artista-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.artista-periodo {
    font-size: 0.9rem;
    color: var(--accent-warm);
    font-weight: 600;
    margin-bottom: 1rem;
}

.artista-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

.artista-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8e6e3 0%, #d4d2cf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.artista-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    display: block;
}

.artista-destacado-label {
    font-size: 0.85rem;
    color: var(--accent-warm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* ==========================================
   SECCIÓN COLECCIÓN
   ========================================== */

.coleccion {
    background-color: #faf9f8;
}

.coleccion-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.obra-card {
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    opacity: 0;
    animation: fadeUpAnimation 0.6s ease-out forwards;
}

.obra-card:nth-child(1) { animation-delay: 0.1s; }
.obra-card:nth-child(2) { animation-delay: 0.2s; }
.obra-card:nth-child(3) { animation-delay: 0.3s; }
.obra-card:nth-child(4) { animation-delay: 0.4s; }
.obra-card:nth-child(5) { animation-delay: 0.5s; }
.obra-card:nth-child(6) { animation-delay: 0.6s; }

.obra-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

.obra-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #e8e6e3 0%, #d4d2cf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    object-fit: cover;
}

.obra-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.obra-artista {
    padding: 0 1.5rem;
    font-weight: 600;
    color: var(--accent-terra);
    font-size: 0.95rem;
}

.obra-info {
    padding: 0 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.obra-description {
    padding: 1rem 1.5rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ==========================================
   SECCIÓN VISITA / SERVICIOS
   ========================================== */

.visita {
    background-color: #ffffff;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background-color: #f9f7f5;
    padding: 2.5rem;
    border-radius: 4px;
    border-top: 4px solid var(--accent-warm);
    transition: var(--transition);
    opacity: 0;
    animation: fadeUpAnimation 0.6s ease-out forwards;
}

.servicio-card:nth-child(1) { animation-delay: 0.1s; }
.servicio-card:nth-child(2) { animation-delay: 0.2s; }
.servicio-card:nth-child(3) { animation-delay: 0.3s; }
.servicio-card:nth-child(4) { animation-delay: 0.4s; }

.servicio-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.servicio-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.horarios-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.horarios-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8e6e3;
    font-size: 0.95rem;
    color: var(--text-light);
}

.horarios-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.servicio-nota {
    font-size: 0.85rem;
    color: var(--accent-warm);
    font-style: italic;
    margin-bottom: 0;
}

address {
    font-style: normal;
}

address p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

/* ==========================================
   SECCIÓN SOBRE EL MUSEO
   ========================================== */

.sobre {
    background: linear-gradient(135deg, #f5f3f0 0%, #faf9f8 100%);
}

.sobre-content {
    max-width: 900px;
    margin: 0 auto;
}

.sobre-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.sobre-text h3:first-child {
    margin-top: 0;
}

.sobre-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ==========================================
   SECCIÓN DESCARGA APP
   ========================================== */

.app-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%);
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
}

.app-section h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.app-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    opacity: 0;
    animation: fadeUpAnimation 0.6s ease-out forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo .nav-logo-img {
    filter: brightness(0) invert(1);
}

.footer-museum-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-warm);
}

.footer-section address {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section address p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-socials {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-socials p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.social-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.social-links li {
    margin: 0;
}

.social-links a {
    color: var(--accent-warm);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.social-icon {
    font-size: 1.2rem;
}

/* ==========================================
   MODAL
   ========================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-buttons .btn {
    padding: 12px 28px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .navbar-container {
        height: auto;
        min-height: 60px;
        padding: 0 15px;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: static;
        width: 100%;
        background-color: #ffffff;
        padding: 1.25rem 0 0;
        gap: 1rem;
        box-shadow: none;
        order: 3;
    }

    .nav-buttons {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.25rem;
        order: 4;
    }

    .nav-menu.active ~ .nav-buttons {
        display: flex;
    }

    .nav-buttons .nav-btn-download {
        width: 100%;
        text-align: center;
    }

    body {
        padding-top: 60px;
    }

    .hero {
        min-height: calc(100vh - 60px);
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    section {
        padding: 60px 0;
    }

    .artistas-grid,
    .obras-grid,
    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .artista-image {
        height: 250px;
    }

    .obra-placeholder {
        height: 220px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        padding: 2rem;
        width: 95%;
    }

    .social-links {
        gap: 1rem;
    }

    .nav-logo-img {
        height: 20px;
    }

    .nav-logo-img.is-fallback {
        width: 120px;
        max-height: 34px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .modal-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .app-section {
        padding: 60px 0;
    }

    .app-section h2 {
        font-size: 1.8rem;
    }

    .app-section p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    section {
        padding: 40px 0;
    }

    .artista-card,
    .servicio-card {
        padding: 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}
